package com.atguigu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户账户
 * </p>
 *
 * @author Joe
 * @since 2024-12-02
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user_account")
public class UserAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 账户总金额
     */
    private BigDecimal totalAmount;

    /**
     * 锁定金额
     */
    private BigDecimal lockAmount;

    /**
     * 可用金额
     */
    private BigDecimal availableAmount;

    /**
     * 总收入
     */
    private BigDecimal totalIncomeAmount;

    /**
     * 总支出
     */
    private BigDecimal totalPayAmount;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Byte isDeleted;
}
